<!DOCTYPE html>
<html lang="en" th:replace="~{layout.html::layout(~{:: #content})}">
<body>

<div class="container-fluid" id="content">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li><a href="index">借阅信息</a></li>
                <li class="active"><a href="students">学生列表</a></li>
                <li><a href="books">书籍列表</a></li>
            </ul>

        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h2 class="sub-header">学生列表</h2>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>学号</th>
                        <th>姓名</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="student:${studentList}">
                        <td th:text="${student.getId()}">学号</td>
                        <td th:text="${student.getName()}">姓名</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

</body>

</html>